atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

how to deal with \ #251

Closed kudou closed 6 years ago

kudou commented 6 years ago

My configuaration in the snippets

'*':
  'test ':
    'prefix': 'test'
    'body': "echo $1| sed -n '/^[0-9]\+$/p'"

when i use test in any file it comes out echo $1| sed -n '/^[0-9]+$/p' the \ is missing.

atom -v Atom : 1.19.6 Electron: 1.6.9 Chrome : 56.0.2924.87 Node : 7.4.0

50Wliu commented 6 years ago

Use \\\\