mirror of
https://github.com/thangisme/notes.git
synced 2026-07-22 00:13:48 -04:00
Initial commit
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isMixinToken;
|
||||
|
||||
var _globals = require('./tokenizer/globals');
|
||||
|
||||
var unpaddedFractionalNumbersPattern = /\.[0-9]/;
|
||||
|
||||
function isMixinToken(token) {
|
||||
var symbol = token[1];
|
||||
var firstSymbolCode = symbol ? symbol[0].charCodeAt(0) : null;
|
||||
|
||||
return (firstSymbolCode === _globals.dot || firstSymbolCode === _globals.hash) &&
|
||||
|
||||
// ignore hashes used for colors
|
||||
_globals.hashColorPattern.test(symbol) === false &&
|
||||
|
||||
// ignore dots used for unpadded fractional numbers
|
||||
unpaddedFractionalNumbersPattern.test(symbol) === false;
|
||||
}
|
||||
module.exports = exports['default'];
|
||||
Reference in New Issue
Block a user