MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / sanitize_for_var

Function sanitize_for_var

PosterAgent/gen_pptx_code.py:4–6  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

2import json
3
4def sanitize_for_var(name):
5 # Convert any character that is not alphanumeric or underscore into underscore.
6 return re.sub(r'[^0-9a-zA-Z_]+', '_', name)
7
8def initialize_poster_code(width, height, slide_object_name, presentation_object_name, utils_functions):
9 code = utils_functions

Callers 3

generate_panel_codeFunction · 0.70
generate_textbox_codeFunction · 0.70
generate_figure_codeFunction · 0.70

Calls 1

subMethod · 0.45

Tested by

no test coverage detected