#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 年之前 中引用了該問題
登入 才能加入這對話。
正在加載...
取消
保存
尚未有任何內容