#61 can't open files with colons in them with open-command

已关闭
nuclearkev1 年之前创建 · 0 条评论

Since open-command parses filenames for colons (:) if the filename contains a colon, it'll fail to open. This isn't common as I don't think that's a POSIX filename but some guy at work thought it was would fun to use datetimes as file names...

I'm not sure what the best solution is but I think that I'll make it so that ait only cares about the colon if the string after it is a value number. I don't think there would be many cases where that will be an issue. For example, 2023-11-07T16:50.sql wouldn't trigger the line number colon thing because 50.sql isn't a number.

Since open-command parses filenames for colons (:) if the filename contains a colon, it'll fail to open. This isn't common as I don't think that's a POSIX filename but some guy at work thought it was would fun to use datetimes as file names... I'm not sure what the best solution is but I think that I'll make it so that ait only cares about the colon if the string after it is a value number. I don't think there would be many cases where that will be an issue. For example, `2023-11-07T16:50.sql` wouldn't trigger the line number colon thing because `50.sql` isn't a number.
Kevin "The Nuclear" Bloom 在代码提交 1 年之前 中引用了该工单
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。