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