Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete dots from the file name #179

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nuclio/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def build_file(filename='', name='', handler='', archive=False, project='',
name = normalize_name(name or filebase)
update_in(config, 'metadata.name', name)
config = extend_config(config, spec, tag, filename)
set_handler(config, filebase, '' if kind else handler, ext)
set_handler(config, normalize_name(filebase), '' if kind else handler, ext)

log = logger.info if verbose else logger.debug
log('Code:\n{}'.format(code))
Expand Down
1 change: 1 addition & 0 deletions nuclio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def normalize_name(name):
# [a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?
name = re.sub(r'\s+', '-', name)
name = name.replace('_', '-')
name = name.replace('.', '')
return name.lower()


Expand Down
Loading