This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* USAGE: Place this script in a directory named `build-tools` in the root of your project. | |
* Add node-sass to your project's dev-dependencies. | |
* Add an npm script "bundle-scss" with the following definition: | |
* | |
* node-sass main.scss output.css --importer ./build-tools/node-sass-import-resolver | |
* | |
* Supported imports: | |
* | |
* @import ('theme.css'); // will resolve css files locally |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validateInt46(value) | |
{ | |
if (!/^[-]?\d+$/.test(value)) return false; | |
var isNegative = value[0]==='-'; | |
if (value.length < 18 + (isNegative ? 1 : 0)) return true; | |
if (value.length > (isNegative ? 20 : 19)) return false; | |
if (isNegative) value = value.slice(1); |