Skip to content

Commit

Permalink
Fix #141 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored and tornqvist committed May 31, 2019
1 parent c9eb16b commit bdd0efe
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/append-child.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var trailingNewlineRegex = /\n[\s]+$/
var leadingNewlineRegex = /^\n[\s]+/
var trailingSpaceRegex = /[\s]+$/
Expand Down
2 changes: 1 addition & 1 deletion lib/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const placeholderRe = /\0(\d+)\0/g
/**
* Get a placeholder string for a numeric ID.
*/
const getPlaceholder = (i) => `\0${i}\0`
const getPlaceholder = (i) => `\u0000${i}\u0000`

/**
* Remove a binding and its import or require() call from the file.
Expand Down
2 changes: 2 additions & 0 deletions lib/bool-props.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

module.exports = [
'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default',
'defaultchecked', 'defer', 'disabled', 'formnovalidate', 'hidden',
Expand Down
2 changes: 2 additions & 0 deletions lib/browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var hyperx = require('hyperx')
var appendChild = require('./append-child')
var SVG_TAGS = require('./svg-tags')
Expand Down
2 changes: 2 additions & 0 deletions lib/browserify-transform.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var isMemberExpression = require('estree-is-member-expression')
var convertSourceMap = require('convert-source-map')
var transformAst = require('transform-ast')
Expand Down
2 changes: 2 additions & 0 deletions lib/direct-props.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

module.exports = [
'indeterminate'
]
2 changes: 2 additions & 0 deletions lib/raw-browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

function nanohtmlRawBrowser (tag) {
var el = document.createElement('div')
el.innerHTML = tag
Expand Down
2 changes: 2 additions & 0 deletions lib/raw-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

function nanohtmlRawServer (tag) {
var wrapper = new String(tag) // eslint-disable-line no-new-wrappers
wrapper.__encoded = true
Expand Down
2 changes: 2 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var BOOL_PROPS = require('./bool-props')

var boolPropRx = new RegExp('([^-a-z](' + BOOL_PROPS.join('|') + '))=["\']?$', 'i')
Expand Down
2 changes: 2 additions & 0 deletions lib/set-attribute.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var DIRECT_PROPS = require('./direct-props')

module.exports = function nanohtmlSetAttribute (el, attr, value) {
Expand Down
2 changes: 2 additions & 0 deletions lib/supported-views.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

module.exports = [
'nanohtml',
'bel',
Expand Down
2 changes: 2 additions & 0 deletions lib/svg-tags.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

module.exports = [
'svg', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor',
'animateMotion', 'animateTransform', 'circle', 'clipPath', 'color-profile',
Expand Down

0 comments on commit bdd0efe

Please sign in to comment.