1 Make sure fs.dirname() doesn't truncate the last character of the 2 returned path. Previously ucv_string_new_length was called with a 3 length which no longer included the last character (which had just 4 been tested not to be a '/' or '.' and hence broke the loop at that 5 point). 6 7 -- Testcase -- 8 {% 9 fs = require('fs'); 10 printf("%s\n", fs.dirname('/etc/config/wireless')); 11 %} 12 -- End -- 13 14 -- Expect stdout -- 15 /etc/config 16 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt