{"action":"closed","issue":{"url":"https://api.github.com/repos/corenova/yang-js/issues/50","repository_url":"https://api.github.com/repos/corenova/yang-js","labels_url":"https://api.github.com/repos/corenova/yang-js/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/corenova/yang-js/issues/50/comments","events_url":"https://api.github.com/repos/corenova/yang-js/issues/50/events","html_url":"https://github.com/corenova/yang-js/issues/50","id":199406975,"number":50,"title":"Question about Pattern syntax","user":{"login":"sirikothe","id":20236316,"avatar_url":"https://avatars.githubusercontent.com/u/20236316?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikothe","html_url":"https://github.com/sirikothe","followers_url":"https://api.github.com/users/sirikothe/followers","following_url":"https://api.github.com/users/sirikothe/following{/other_user}","gists_url":"https://api.github.com/users/sirikothe/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikothe/subscriptions","organizations_url":"https://api.github.com/users/sirikothe/orgs","repos_url":"https://api.github.com/users/sirikothe/repos","events_url":"https://api.github.com/users/sirikothe/events{/privacy}","received_events_url":"https://api.github.com/users/sirikothe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-08T06:55:50Z","updated_at":"2017-01-11T01:01:06Z","closed_at":"2017-01-11T01:01:06Z","body":"I am unable to compile the following yang:\r\nhttps://github.com/YangModels/yang/blob/master/vendor/cisco/xr/612/Cisco-IOS-XR-types.yang\r\nthrows following error:\r\nElementError: invalid YANG syntax detected around: '\"(([a-f0-9]{16}-)(([1-9]?[0-9]|1[0-9][0-9]|2[0-4]\"+ \"[0-9]|25[0-5])\\.){3}([1-9]?[0-9]|1[0-9]'\r\n\r\nAt this statement:\r\n typedef Bgp-ipv4-tunnel-addr {\r\n    type string {\r\n      pattern \"((0:|[1-9][0-9]{0,4}:)\"+\r\n        \"(([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}\"+\r\n        \"([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))\";\r\n    }\r\nIt passes the syntax in the following scenarios.\r\nIf I change the pattern to  (Remove \\ before .)\r\n      pattern \"(([a-f0-9]{16}-)(([1-9]?[0-9]|1[0-9][0-9]|2[0-4]\"+\r\n        \"[0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]\"+\r\n        \"|25[0-5]))\";\r\n\r\nor to (replace \" with ')\r\n      pattern '(([a-f0-9]{16}-)(([1-9]?[0-9]|1[0-9][0-9]|2[0-4]'+\r\n        '[0-9]|25[0-5])\\.){3}([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]'+\r\n        '|25[0-5]))';\r\n\r\nNot sure what is the correct way of representing this syntax.\r\nThanks for your help."}}
{"actor":{"display_login":"saintkepha"}}