mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
disable JSHint's "regexdash" relaxing option
This commit is contained in:
parent
58a5f2e50f
commit
6c5ad30c79
@ -32,8 +32,8 @@
|
||||
"loopfunc": true,
|
||||
"multistr": false,
|
||||
"onecase": true,
|
||||
"regexdash": true,
|
||||
"proto": false,
|
||||
"regexdash": false,
|
||||
"scripturl": true,
|
||||
"shadow": true,
|
||||
"smarttabs": true,
|
||||
|
||||
@ -46,7 +46,7 @@ function strToFilename(str) {
|
||||
// allow for namespace prefix
|
||||
var basename = str.replace(nsprefix, '$1-');
|
||||
|
||||
if ( /[^$a-z0-9._-]/i.test(basename) ) {
|
||||
if ( /[^$a-z0-9._\-]/i.test(basename) ) {
|
||||
return hash.hex_md5(str).substr(0, 10);
|
||||
}
|
||||
return makeFilenameUnique(basename, str);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user