1234567891011121314151617181920212223242526272829303132 |
- var Node = require('./node');
- var Literal = module.exports = function Literal(str) {
- this.str = str
- .replace(/\\/g, "\\\\")
- .replace(/\n|\r\n/g, "\\n")
- .replace(/'/g, "\\'");
- };
- Literal.prototype.__proto__ = Node.prototype;
|