Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.0.1] class name cannot be only numbers #33

Open
aleclarson opened this issue Mar 8, 2018 · 0 comments
Open

[v2.0.1] class name cannot be only numbers #33

aleclarson opened this issue Mar 8, 2018 · 0 comments

Comments

@aleclarson
Copy link

~/pug-cli/node_modules/pug-lexer/index.js:60
    throw err;
    ^

Error: test.pug:58:5
    56|       +another(abc=123, bcd='lol')
    57| 
  > 58|     .98349 class name only numbers
------------^
    59|     ._[invalid character in class name should result in it and text following be considered text
    60| 
    61|     //  some html comment

Class names must contain at least one letter or underscore.
    at makeError (~/pug-cli/node_modules/pug-error/index.js:32:13)
    at Lexer.error (~/pug-cli/node_modules/pug-lexer/index.js:59:15)
    at Lexer.className (~/pug-cli/node_modules/pug-lexer/index.js:445:12)
    at Lexer.callLexerFunction (~/pug-cli/node_modules/pug-lexer/index.js:1456:23)
    at Lexer.advance (~/pug-cli/node_modules/pug-lexer/index.js:1492:15)
    at Lexer.callLexerFunction (~/pug-cli/node_modules/pug-lexer/index.js:1456:23)
    at Lexer.getTokens (~/pug-cli/node_modules/pug-lexer/index.js:1512:12)
    at lex (~/pug-cli/node_modules/pug-lexer/index.js:12:42)
    at Object.lex (~/pug-cli/node_modules/pug/lib/index.js:99:27)
    at Function.loadString [as string] (~/pug-cli/node_modules/pug-load/index.js:44:24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant